package com.macro.utils;
/**
 * 提供返回code/desc信息
 */
public enum ResponseCode {

    SUCCESS(200,"SUCCESS"),//成功
    NOFIND(404,"NOFIND"),//找不到
    ERROR(500,"ERROR");//失败，错误



    private final int code;
    private final String desc;


    ResponseCode(int code, String desc){
        this.code = code;
        this.desc = desc;
    }

    public int getCode(){
        return code;
    }
    public String getDesc(){
        return desc;
    }

}
